package com.zcsy.manage.web.common;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Controller
public class PreviewController {
	
	/**
	 * @Description 内容的预览框
	 * @param container 内容
	 * @return 跳转画面
	 * @author liuying 1075817474@qq.com
	 * @date 2016年8月25日
	 * @see 
	 */
	@RequestMapping(value = "contentPreview", method = RequestMethod.POST)
	public String contentPreview(Model model, String container) {
		try {
			if (container != null) {
				model.addAttribute("container", container);
			}
		} catch (Exception e) {
		}

		return "common/preview";
	}
	
}
